namespace AndyPike.Commons.Persistence
{
    public interface IEntityToMessageMapper<TEntity, TMessage>
        where TEntity : IEntity
        where TMessage : IMessage
    {
        TMessage Map(TEntity entity);
    }
}